# Contributor: Newbyte <newbie13xd@gmail.com>
# Maintainer: team/phosh <newbie13xd@gmail.com>
pkgname=phosh-mobile-settings
pkgver=0.42.0
pkgrel=0
pkgdesc="Settings app for mobile specific things"
url="https://gitlab.gnome.org/guidog/phosh-mobile-settings"
# blocked by phosh
arch="all !armhf !s390x !ppc64le"
license="GPL-3.0-or-later"
makedepends="
	desktop-file-utils
	glib-dev>=2.62
	gmobile-dev
	gnome-desktop-dev
	gsound-dev
	gtk4.0-dev
	json-glib-dev
	libadwaita-dev
	lm-sensors-dev
	meson
	phosh-dev
	"
subpackages="$pkgname-lang"
source="https://sources.phosh.mobi/releases/phosh-mobile-settings/phosh-mobile-settings-${pkgver/_/.}.tar.xz"
builddir="$srcdir/$pkgname-${pkgver/_/.}"

build() {
	abuild-meson \
		-Db_lto=true \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild --skip-subprojects -C output
}

sha512sums="
aebb741ae1ad508610600ab24495442cff959d883c12529f47b9eb3cf822d03dcf4b9d0e8605dd77820861899329c2133bdad566567b50a009d180a0141dcfc3  phosh-mobile-settings-0.42.0.tar.xz
"
